<?php
	/**
	* 
	*/
	class FanliinterfaceModel extends Model
	{
		public function getInterfaces($condition,$start,$size){
			$result=[];
			$result=$this->where($condition)->limit($start,$size)->order('id desc')->select();
			return $result;
		}

		public function getCounts($condition){
			$result=0;
			$result = $this->where($condition)->count();
			return $result;
		}

		public function addInterface($data){
			return $this->data($data)->add();
		}

		public function delInterface($condition){
			return $this->where($condition)->delete();
		}
	}